package org.jeecg.modules.company.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.company.entity.Storehouse;
import org.jeecg.modules.company.facade.IStorehouseFacade;
import org.jeecg.modules.company.service.IStorehouseService;
import org.jeecg.modules.company.vo.StorehouseVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 仓库
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class StorehouseFacadeImpl extends IFacadeImpl<StorehouseVo, Storehouse, IStorehouseService>  implements IStorehouseFacade<StorehouseVo, Storehouse> {
        @Autowired
        private IStorehouseService storehouseService;


         @Override
         public Storehouse po2Vo(StorehouseVo vo) {
                Storehouse po = new Storehouse();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public StorehouseVo vo2Po(Storehouse po) {
                StorehouseVo vo = new StorehouseVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
